#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"

int main()
{
	aqc::list<int> a;
	a.push_back(1);
	a.push_back(2);
	a.push_back(3);
	a.push_back(4);
	
	aqc::list<int>::iterator it = a.begin();
	a.print();
	aqc::list<int>::reverse_iterator it2 = a.rbegin();
	//aqc::list<int>::const_iterator it3 =  a.begin();
	while (it2 != a.rend())
	{
		cout << *it2 << " ";
		++it2;
	}
	cout << endl;
	it2++;
	cout << *it2;


	return 0;
}